package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import com.baoai.common.StringWords;
import org.springframework.stereotype.Repository;

/**
 * 文章
 * Created by xiaren on 2017/4/10.
 */
@Repository("article")
public class ArticleDto extends BaseDto {

    private String className = "article";
    private String id;
    @IdName
    private String articleId;    // 文章id
    private String title;   // 文章标题
    private String srcJson; // 文章图片 eg、["http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg"]
    private String author;  //作者
    @ArrayQuery(lengthName = "labelJson_Count")
    private String labelJson;  //标签 eg、["爱情类别"]
    private String labelIdJson; // 标签id     eg、[1,2]
    private String coverType;   // 文章布局 1 一图 2 三图
    private Integer visitorNumber;  //浏览人数
    private String channelId;   // 频道id
    private String channelName; //频道名称
    private String sex;   // 性别 0所有，1男，2女
    private Long createDate;    // 当前时间的毫秒数
    private Long updateDate;    //修改时间
    private String recommend;  //推荐(0推荐、1不推荐）
    @StringWords
    private String state;  //状态0.未审核(草稿)1.审核通过2.审核不通过
    private Integer shareNumber;    //分享个数
    private Integer praiseNumber;   // 点赞个数
    private Integer collectNumber;  // 收藏个数
    private Integer commentNumber;  //评论个数
    private String tutorId; //导师ID

    public String getTutorId() {
        return tutorId;
    }

    public void setTutorId(String tutorId) {
        this.tutorId = tutorId;
    }

    public Integer getPraiseNumber() {
        return praiseNumber;
    }

    public void setPraiseNumber(Integer praiseNumber) {
        this.praiseNumber = praiseNumber;
    }

    public Integer getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Integer collectNumber) {
        this.collectNumber = collectNumber;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "ArticleDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", articleId='" + articleId + '\'' +
                ", title='" + title + '\'' +
                ", srcJson='" + srcJson + '\'' +
                ", author='" + author + '\'' +
                ", labelJson='" + labelJson + '\'' +
                ", labelIdJson='" + labelIdJson + '\'' +
                ", coverType='" + coverType + '\'' +
                ", visitorNumber=" + visitorNumber +
                ", channelId='" + channelId + '\'' +
                ", channelName='" + channelName + '\'' +
                ", sex='" + sex + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", recommend='" + recommend + '\'' +
                ", state='" + state + '\'' +
                ", shareNumber=" + shareNumber +
                ", praiseNumber=" + praiseNumber +
                ", collectNumber=" + collectNumber +
                ", commentNumber=" + commentNumber +
                ", tutorId=" + tutorId +
                '}';
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSrcJson() {
        return srcJson;
    }

    public void setSrcJson(String srcJson) {
        this.srcJson = srcJson;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getLabelJson() {
        return labelJson;
    }

    public void setLabelJson(String labelJson) {
        this.labelJson = labelJson;
    }

    public String getLabelIdJson() {
        return labelIdJson;
    }

    public void setLabelIdJson(String labelIdJson) {
        this.labelIdJson = labelIdJson;
    }

    public String getCoverType() {
        return coverType;
    }

    public void setCoverType(String coverType) {
        this.coverType = coverType;
    }

    public Integer getVisitorNumber() {
        return visitorNumber;
    }

    public void setVisitorNumber(Integer visitorNumber) {
        this.visitorNumber = visitorNumber;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }
}
